package www.shuang.users.pojo;

import java.util.Date;

/**
 * 用户银行卡的POJO
 * 
 * @author wangshSxt
 *
 */
public class AUsersCard
{
	private int id;
	private int usersId;
	private int bankId;
	private int regionId;
	private String name;
	private String cardno;
	private String address;
	private byte defautStatus;
	private byte status;
	private Date createTime;
	private Date updateTime;
	private Date pubTimeTime;

	/* 字符串描述 */
	private String statusStr;
	private String defautStatusStr ; 

	public int getId()
	{
		return id;
	}

	public void setId(int id)
	{
		this.id = id;
	}

	public int getUsersId()
	{
		return usersId;
	}

	public void setUsersId(int usersId)
	{
		this.usersId = usersId;
	}

	public int getBankId()
	{
		return bankId;
	}

	public void setBankId(int bankId)
	{
		this.bankId = bankId;
	}

	public int getRegionId()
	{
		return regionId;
	}

	public void setRegionId(int regionId)
	{
		this.regionId = regionId;
	}

	public String getName()
	{
		return name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public String getCardno()
	{
		return cardno;
	}

	public void setCardno(String cardno)
	{
		this.cardno = cardno;
	}

	public String getAddress()
	{
		return address;
	}

	public void setAddress(String address)
	{
		this.address = address;
	}

	public byte getDefautStatus()
	{
		return defautStatus;
	}

	public void setDefautStatus(byte defautStatus)
	{
		this.defautStatus = defautStatus;
	}

	public byte getStatus()
	{
		return status;
	}

	public void setStatus(byte status)
	{
		this.status = status;
	}

	public Date getCreateTime()
	{
		return createTime;
	}

	public void setCreateTime(Date createTime)
	{
		this.createTime = createTime;
	}

	public Date getUpdateTime()
	{
		return updateTime;
	}

	public void setUpdateTime(Date updateTime)
	{
		this.updateTime = updateTime;
	}

	public Date getPubTimeTime()
	{
		return pubTimeTime;
	}

	public void setPubTimeTime(Date pubTimeTime)
	{
		this.pubTimeTime = pubTimeTime;
	}
	
	public String getStatusStr()
	{
		if(this.status == 0)
		{
			this.statusStr = "禁用" ; 
		}else if(this.status == 1)
		{
			this.statusStr = "启用" ; 
		}
		return statusStr;
	}

	public String getDefautStatusStr()
	{
		/*
		 * 默认状态:0:否;1:是
		 */
		if(this.defautStatus == 0)
		{
			this.defautStatusStr = "禁用" ; 
		}else if(this.defautStatus == 1)
		{
			this.defautStatusStr = "启用" ; 
		}
		return defautStatusStr;
	}
}
